<?php require '../includes/security.php'; ?>
<?php require_once('../Connections/connection.php'); ?>
<?php
mysql_select_db($database_setroma, $setroma);

if ($_SESSION['status'] == "logged") {
	
	
$myFile = $_SERVER["DOCUMENT_ROOT"].$rootpath."userfiles/rooms/".GetSQLValue("select Path from stanze where id_stanza=".$_GET['id']);
	
	
$query = "delete from stanze where id_stanza=".$_GET['id'];
$risultato = mysql_query($query, $setroma) or die(mysql_error());
@unlink($myFile);

}

header("location: index.php"); 

?>